package cz.hanis.android.geography;

import android.os.Parcel;
import android.os.Parcelable;

public class TestSpecification implements Parcelable {
	
	public static final String KEY = "test_spec_key";

	private String continent;
	private String testId;
	private int testTypeId;
	
	
	public TestSpecification() {		
	}

	public TestSpecification(Parcel parcel) {
		continent = parcel.readString();
		testId = parcel.readString();
		testTypeId = parcel.readInt();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(continent);
		dest.writeString(testId);
		dest.writeInt(testTypeId);
	}
	
	 public static final Parcelable.Creator<TestSpecification> CREATOR = new Parcelable.Creator<TestSpecification>() {
         public TestSpecification createFromParcel(Parcel parcel) {
             return new TestSpecification(parcel);
         }
         public TestSpecification[] newArray(int size) {
             return new TestSpecification[size];
         }
   };
  
	public int getTestTypeId() {
		return testTypeId;
	}
	
	public void setTestTypeId(int testTypeId) {
		this.testTypeId = testTypeId;
	}	


	public String getContinent() {
		return continent;
	}

	public void setContinent(String continent) {
		this.continent = continent;
	}

	public String getTestId() {
		return testId;
	}

	public void setTestId(String testId) {
		this.testId = testId;
	}
	
	@Override
	public String toString() {
		return "Test Id: " + testId + ", Continent: " + continent + ", Test Type Id: " + testTypeId;
	}
   
	

}
